<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:s="http://jboss.com/products/seam/taglib"
  template="/WEB-INF/templates/template.xhtml"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich">
  
  <ui:define name="head">
  </ui:define>
<ui:define name="editLinea">
   <center >
   <br />
	<h:outputText value="ABM de Lineas"  styleClass="tituloabm"/>
   <br />
	<br />	
   <div class ="divabm">
   
   <h:form  id = "savelineaform" rendered="#{appUser.userLogin != null}">
    	<h:panelGrid columns="1">
    		<h:outputText value="#{messages.editlineahelp}" />
    	</h:panelGrid>
    	<h:panelGrid columns= "2">
    		<h:outputText value="#{messages.editname}" />
    		<h:selectManyListbox  size = "5" value="#{lineaCtrl.lineaSelected.materias}"  collectionType="java.util.ArrayList" 
    										converter = "#{materiaprimaadapter.converter}"> 
					<f:selectItems value="#{materiaprimaadapter.items}"/>
			</h:selectManyListbox> 
    	</h:panelGrid>
    	<br />
		<br />
    	<h:panelGrid columns="3">
    			<h:commandLink action="admin-linea.jsf" styleClass="commandLink">
    			   <h:commandButton action="#{lineaCtrl.clearData}" image="resources/img/button-back.png" />	
	   		   </h:commandLink>
	   		   	<h:commandButton action="#{lineaCtrl.saveMaterias()}" image = "resources/img/button-save.png"  />
	   </h:panelGrid>
    	<h:panelGrid columns="1">
    			<h:outputText id="savesuccessmsg" value="#{messages.savesuccess}" rendered = "#{lineaCtrl.saveSuccess}"  style="FONT-WEIGHT: bold; COLOR: #ff0000;"/>
    			<h:outputText id="deletesuccessmsg" value="#{messages.deletesuccess}" rendered = "#{lineaCtrl.deleteSuccess}"  style="FONT-WEIGHT: bold; COLOR: #ff0000;"/>
    	</h:panelGrid>
    </h:form>
	
	</div>
	</center>
	</ui:define>
	
	<ui:define name="body">
 </ui:define>    
 </ui:composition>

